#include "StdAfx.h"
#include "MsgBoxOperation.h"

namespace HotKeyOperation
  {
  //------------------------------------------------------------------------

  MsgBoxOperation::MsgBoxOperation(std::wstring & i_caption, std::wstring & i_text, 
    unsigned int i_delay_before /*= 0*/, unsigned int i_delay_after /*= 0*/)
    :m_caption(i_caption)
    ,m_text(i_text)
    ,IOperation(i_delay_before, i_delay_after)
    {
    }

  //------------------------------------------------------------------------

  MsgBoxOperation::MsgBoxOperation(const wchar_t * i_caption, const wchar_t * i_text, 
    unsigned int i_delay_before /*= 0*/, unsigned int i_delay_after /*= 0*/)
    :m_caption(i_caption)
    ,m_text(i_text)
    ,IOperation(i_delay_before, i_delay_after)
    {
    }

  //------------------------------------------------------------------------

  void MsgBoxOperation::DoOperate()
    {
    MessageBox(0, m_text.c_str(), m_caption.c_str(), MB_OK);
    }



  //------------------------------------------------------------------------
  }

//BOOST_CLASS_EXPORT_IMPLEMENT(HotKeyOperation::MsgBoxOperation)

